package tvp.ltdd.fake_call_sms.helper;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.net.Uri;
import android.os.Message;
import android.os.Messenger;
import android.telephony.SmsMessage.MessageClass;
import android.util.Log;

public class MessageHelper {

	public static void putMessage(ContentResolver contentResolver,
			String number, String body, int type) {
		Log.v("33333333", "put message");
		ContentValues values = new ContentValues();
		values.put("address", number);
		values.put("body", body);
		switch (type) {
		case 1:
			contentResolver.insert(Uri.parse("content://sms/inbox"), values);
			break;
		case 2:
			contentResolver.insert(Uri.parse("content://sms/sent"), values);
			break;
		case 3:
			contentResolver.insert(Uri.parse("content://sms/failed"), values);
			break;
		case 4:
			contentResolver.insert(Uri.parse("content://sms/draft"), values);
			break;
		case 5:
			contentResolver.insert(Uri.parse("content://sms/outbox"), values);
			break;
		case 6:
			contentResolver.insert(Uri.parse("content://sms/queued"), values);
			break;
		}
		Log.v("4444444444444", "put message" + body);

	}

}
